package com.jianzh5.message;

import java.util.Arrays;

public class MailInfo {
	
	private String toaddress;				// 邮件收件人
	private String subject;					//主题
	private String content;					//邮件内容
	private String[] attachFileNames;		//附件文件名
	private boolean validate = true;		//是否需要验证发件人 ，默认设置为true
	
	public MailInfo(){
		
	}
	
	public MailInfo(String toaddress, String subject, String content,
			String[] attachFileNames, boolean validate) {
		this.toaddress = toaddress;
		this.subject = subject;
		this.content = content;
		this.attachFileNames = attachFileNames;
		this.validate = validate;
	}
	public String getToaddress() {
		return toaddress;
	}
	public void setToaddress(String toaddress) {
		this.toaddress = toaddress;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String[] getAttachFileNames() {
		return attachFileNames;
	}
	public void setAttachFileNames(String[] attachFileNames) {
		this.attachFileNames = attachFileNames;
	}
	public boolean isValidate() {
		return validate;
	}
	public void setValidate(boolean validate) {
		this.validate = validate;
	}
	@Override
	public String toString() {
		return "MailInfo [toaddress=" + toaddress + ", subject=" + subject
				+ ", content=" + content + ", attachFileNames="
				+ Arrays.toString(attachFileNames) + ", validate=" + validate
				+ "]";
	}
}
